package cn.com.tianpeidong.restaurantadmin.project.admin.role.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author tianpeidong
 * @version 创建时间: 19-4-8 下午10:26
 */
@Data
public class OperateRole {
    private Long id;

    @NotBlank(message = "角色名不能为空")
    @Size(max = 10, message = "角色名长度不能超过10")
    private String roleName;
    @NotNull(message = "权限列表不能为空")
    private List<Long> permissionList;
}
